package br.com.intelsys.basics.dao.hiber;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.Session;

import br.com.intelsys.basics.dao.DaoDebugInfo;

public class DaoDebugInfoHiber implements DaoDebugInfo {
	private int sessCount;
	private List<String> sessionDebugList;

	public DaoDebugInfoHiber(List<Session> sessionList, int sessCount) {
		this.sessCount = sessCount;
		sessionDebugList = new ArrayList<String>();
		int i = 0;
		if (sessionList != null) {
			for (Session sess : sessionList) {
				sessionDebugList.add(DaoHiber.getSessionData(sess, i++));
			}
		}
	}

	public int getSessCount() {
		return sessCount;
	}

	public List<String> getSessionDebugList() {
		return sessionDebugList;
	}
}
